package com.foreknow.elm.dao;

import com.foreknow.elm.po.OrderDetailet;

import java.util.List;

public interface OrderDetailetDao {
    /**
     * 批量添加
     * @param list
     * @return
     * @throws Exception
     */
    public int saveOrderDetailetBatch(List<OrderDetailet> list) throws Exception;

    /**
     * 根据订单的id查询明细列表
     * @param orderId
     * @return
     * @throws Exception
     */
    public List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId) throws Exception;
}
